import 'package:flutter/material.dart';
class Test16 extends StatefulWidget{
    _TestState createState() => _TestState();
}

class _TestState extends State<Test16> {

  @override
  Widget build(BuildContext context) {

    return new Scaffold(
        appBar: PreferredSize(
            child:Container(
                padding: EdgeInsets.only(
                    top: MediaQuery.of(context).padding.top,
                ),
                child: Padding(
                    padding: EdgeInsets.only(left: 30,top: 20,bottom: 20),
                    child: Text("hhhhh"),
                ),
                decoration: BoxDecoration(
                    gradient: LinearGradient(
                        colors: [Colors.red,Colors.yellow]
                    ),
                    boxShadow: [
                        BoxShadow(
                            color:Colors.grey[500],
                            blurRadius: 20.0,
                            spreadRadius: 1.0
                        ),
                    ]
                ),
            ),
            preferredSize: Size(
                MediaQuery.of(context).size.width,
                150.0
            ),
        ),
        body: Container(
            child: Column(
                children: <Widget>[
                    Text(MediaQuery.of(context).padding.top.toString()),
                    Text(MediaQuery.of(context).size.width.toString()),
                    Container(
                        height: 80,
                        width: double.infinity,
                        decoration: BoxDecoration(
                            gradient: LinearGradient(
                                colors: [Colors.cyan,Colors.blue,Colors.blueAccent]
                            )
                        ),
                    ),
                ],
            )
        ),
        
    );
  }


}
